package com.ct.ah.lab;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.ct.ah.lab.dao")//加载DAO接口完成到mapper的映射
@ServletComponentScan("com.ct.ah.lab.filter")
@EnableTransactionManagement//进行事务管理
public class MainController {

    //启动函数的定义
    public static void main(String[] args) {
        //加载当前类,以及启动参数
        SpringApplication.run(MainController.class, args);
    }


}
